package com.itheima.HomeWork;

public class Demo5Arr {
    public static void main(String[] args) {
        int[] arr = {72,89,65,87,91,82,71,93,76,68};
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            sum += arr[i];
        }
        int a = 0;
        a = sum / arr.length;
        System.out.println("学生的平均成绩为" + a);
    }
}
